<?php
//$_GET;
//var_dump($_POST);
if(empty($_REQUEST['id'])){
    echo '<script>alert("缺少参数")</script>';
    return;
}
$id=$_REQUEST['id'];
//参考：https://www.cnblogs.com/52fhy/p/5352304.html

require "connect.php";

//3、修改
$sql="SELECT * FROM `infors` WHERE id=$id";
$stmt = $pdo->query($sql); //返回一个PDOStatement对象
$item = $stmt->fetch(); //从结果集中获取下一行，用于while循环

